package com.ttdev.mmms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.sql.Timestamp;

/**
 * 账单实体类
 * 杨培朔
 */
@Data
@AllArgsConstructor
@TableName("account_info")
public class Account {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;//账单编号

    @TableField(value = "store_id")
    private Integer storeId;//商家编号

    @TableField(value = "card_id")
    private Integer cardId;//操作会员

    @TableField(value = "money")
    private Double money;//交易金额

    @TableField(value = "type")
    private String type;//类型 充值或者消费

    @TableField(value = "time")
    private Timestamp time;//时间

    public Account() {

    }
}
